﻿using System.ComponentModel.DataAnnotations;

namespace B.S.DataBase.MyProject.Domain
{
    /// <summary>
    /// 用户表
    /// </summary>
    public class User
    {
        [Key]
        public int UserId { get; set; }
        /// <summary>
        /// 部门编号
        /// </summary>
        public int DepId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 性别 false 男 true 女
        /// </summary>
        public bool Sex { get; set; }

        /// <summary>
        /// 省份名称
        /// </summary>
        public int ProvinceId { get; set; }
        /// <summary>
        /// 市名称
        /// </summary>
        public int CityId { get; set; }

        /// <summary>
        /// 县名称
        /// </summary>
        public int CountyId { get; set; }

        /// <summary>
        /// 村详细地址
        /// </summary>
        public string HamletName { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }


        /// <summary>
        /// 逻辑删除 false 未删  true 删除
        /// </summary>
        public bool IsDel { get; set; }


        /// <summary>
        /// 部门领导 0:员工 1:领导 2:负责人
        /// </summary>
        public int Heads { get; set; }

    }
}
